Conversation
| torch.manual_seed(TEST_SEED) | ||
| if test_eps: | ||
| # compute to get same t seed | ||
| eps = torch.randn_like(x0) |
There was a problem hiding this comment.
where is this one used?
There was a problem hiding this comment.
okay I get it. Why don't you give eps instead of ret_eps in line 132 and drop the comment? esp and ret_eps are supposed the be the same.
There was a problem hiding this comment.
I think we want to test that they are the same? Make sure we didn't mess anything up.
There was a problem hiding this comment.
Ahh no we can't do that. It messes up the seeds for later inits.
| x0, x1, return_noise=True, eps=eps | ||
| ) | ||
| if test_eps: | ||
| assert torch.allclose(ret_eps, eps) |
There was a problem hiding this comment.
I think this assert should be done at the end of the file. eps is supposed to be the same as ret_eps and it is in the same spirit as the tests over t_given_init
| return torch.randn_like(x) | ||
|
|
||
| def sample_location_and_conditional_flow(self, x0, x1, t=None, return_noise=False): | ||
| def sample_location_and_conditional_flow(self, x0, x1, t=None, return_noise=False, eps=None): |
There was a problem hiding this comment.
can you run some notebooks to ensure the behaviour is still correct please? thx.
add fixed
epsilonoption following #122